package com.pet.action.wys;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.opensymphony.xwork2.ActionSupport;
import com.pet.bean.ForumBean;
import com.pet.bean.ReplyBean;
import com.pet.dao.wys.ForumDao;
import com.pet.dao.wys.UserDao;

/**
 * 类名称 ： FormAction
 * 类描述 ：
 * 创建人 ： wangys
 * 分机号 ： 6721
 * 创建时间 ： 2013-3-24下午05:33:00
 *
 */
public class ForumAction extends ActionSupport {
	private static final Log log = LogFactory.getLog(ForumAction.class);
	
	private ForumBean forumBean;
	private List<ReplyBean> listReplyBean;
	private ForumDao forumDao;
	
	public String detail(){
		
		log.info("查询帖子详细信息.....");
		
		forumBean = forumDao.queryForumById(forumBean);
		log.info("forumBean is null ----> " + (forumBean == null));
//		listReplyBean = forumDao.queryReplyBean(forumBean);
		
		return "toDetail";
	}
	
	public ForumBean getForumBean() {
		return forumBean;
	}
	public void setForumBean(ForumBean forumBean) {
		this.forumBean = forumBean;
	}
	public ForumDao getForumDao() {
		return forumDao;
	}
	public void setForumDao(ForumDao forumDao) {
		this.forumDao = forumDao;
	}
	public List<ReplyBean> getListReplyBean() {
		return listReplyBean;
	}
	public void setListReplyBean(List<ReplyBean> listReplyBean) {
		this.listReplyBean = listReplyBean;
	}
}
